﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xfm.Core.Db
{
    public interface IDbBase
    {
        int Id { get; set; }
    }
    /// <summary>
    /// 数据实体基类
    /// </summary>
    [NotMapped]
    public abstract class DbBase : IDbBase
    {
        [Key]
        public int Id { get; set; }
    }
}
